package things
{
	import UI.abstract.component.control.mc.Animation;
	import UI.abstract.resources.AnCategory;
	
	import things.data.AnData;
	import things.data.ThingData;

	public class Animal extends Thing
	{
		protected var _animation:AnimationData;	//身体
		public var _anSetting:AnSetting;
		public function Animal()
		{
			super();
			_anSetting = new AnSetting();
			addChild(_anSetting);
			_animation = new AnimationData(AnCategory.USER,"100012003");
			_anSetting.addChild(_animation);
			
		}
		override public function create(data:ThingData) : void
		{
			super.create(data);
			
			setBodySource();
		}
		public function get anData():AnData
		{
			return _data as AnData;
		}
		override public function dispose():void
		{
			_animation = null;
			_anSetting.dispose();
			_anSetting = null;
			super.dispose();
		}
		protected function setBodySource():void
		{
			
		}
		public function changeBody(category:String, name:String):void
		{
			
		}
	}
}